<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
$(document).ready(function(){
	$("#menu").slideDown(0);
})

var flag = false;
function contract(){
	if(flag == true){
		$("#menu").slideDown(800);
		flag = false;
	}else{
		$("#menu").slideUp(800);
		flag = true;
	}
}
</script>
<div id="aside" class="aside">
	<div id="logo" class="row-fluid logo">
		<h1>
			<span>EMM <i>v0.2</i></span>
		</h1>
	</div>
	<div id="profile" class="row-fluid profile">
		<span class="block avatar"> <img src="images/user.png" />
		</span> <span class="block"> <label><b>${systemUser.username}</b>&nbsp;(管理员)</label>
		</span>
	</div>
	<div id="nav" class="row-fluid">
		<ul class="nav nav-list">
			<li class="nav-header">系统菜单</li>
			<li <c:if test="${menu=='member' or empty menu}">class="active"</c:if>><a href="member/home">会员管理</a></li>
			<li <c:if test="${menu=='comment'}">class="active"</c:if>><a href="comment/home">评论管理</a></li>
			<li <c:if test="${menu=='order'}">class="active"</c:if>><a href="order/home">订单查询</a></li>
			<li <c:if test="${menu=='mobilepayment'}">class="active"</c:if>><a href="mobilepayment/home">手机支付管理</a></li>
			<li><a href="javascript:contract()">用户权限管理</a>
				<ul class="nav nav-list" id="menu">
					<li <c:if test="${menu=='systemuser'}">class="active"</c:if>><a href="systemuser/manage">用户管理</a></li>
					<li <c:if test="${menu=='role'}">class="active"</c:if>><a href="role/manage">角色管理</a></li>
					<li <c:if test="${menu=='permission'}">class="active"</c:if>><a href="permission/manage">权限管理</a></li>
				</ul></li>
			<li <c:if test="${menu=='systemconfig'}">class="active"</c:if>><a href="systemconfig/home">系统设置</a></li>
			<li <c:if test="${menu=='systemlog'}">class="active"</c:if>><a href="systemlog/home">系统日志</a></li>
		</ul>
	</div>
</div>
